﻿/*   
    Copyright (C) 2009 Galaktika Corporation ZAO

    This file is a part of Galaktika.BusinessMonitor
 
    Galaktika.BusinessMonitor is a free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.
      
    You should have received a copy of the GNU General Public License
    along with Galaktika.BusinessMonitor.  If not, see <http://www.gnu.org/licenses/>.
  
    If GPL v.3 is not suitable for your products or company,
    Galaktika Corp provides Galaktika.BusinessMonitor under a flexible commercial license
    designed to meet your specific usage and distribution requirements.
    If you have already obtained a commercial license from Galaktika Corp,
    you can use this file under those license terms.
*/

using System;
using System.ComponentModel;
using System.Windows;
using System.Windows.Data;
using Galaktika.BI.Extensibility;

namespace Galaktika.BI.Charting
{
    [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)]
    public interface IDataSeriesInfo
    {
        // Methods
        string[] GetDataNames();
        ValueCoordinate[] GetValueCoordinates();
        double[,] GetValues();
        void SetResolvedValues(int index, object[] values);

        // Properties
        object Connection { get; set; }
        string Label { get; set; }
        Binding[] MemberPaths { get; }
        object Symbol { get; set; }
    }

    internal interface ILayout
    {
        // Methods
        void UpdateLayout();
    }

    [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)]
    public interface IRenderer
    {
        // Events
        event EventHandler Changed;

        // Methods
        void AddSeries(IDataSeriesInfo seriesInfo);
        void Clear();

        // Properties
        ICoordConverter CoordConverter { get; set; }
        bool Dirty { get; set; }
        string Options { get; set; }
        UIElement Visual { get; set; }
    }

    [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)]
    public interface ICoordConverter
    {
        // Methods
        Point ConvertPoint(Point point);
        double ConvertX(double x);
        double ConvertY(double y);
        double ConvertZ(double z);

        // Properties
        Rect DataBounds { get; }
        Rect ViewBounds { get; }
    }
}
